package com.example.springAop.com.demo.staticproxy;
//代理对象
public class AccountProxy implements IAccountService{

    //目标对象
    private IAccountService target;

    public AccountProxy(IAccountService target){
        this.target = target;
    }

    @Override
    public void transfer() {
        before();
        target.transfer();
    }

    /**
     * 前置增强逻辑
     */
    private void before(){
        System.out.println("对转账人身份进行验证");
    }

}
